package org.jeecg.modules.demo.crm.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 项目数据看板
 * @Author: jeecg-boot
 * @Date:   2025-07-18
 * @Version: V1.0
 */
@Data
@TableName("c_project_preview")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="c_project_preview对象", description="项目数据看板")
public class CProjectPreview implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**项目*/
	@Excel(name = "项目", width = 15, dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
	@Dict(dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
    @ApiModelProperty(value = "项目")
    private String projectId;
	/**项目编号*/
	@Excel(name = "项目编号", width = 15)
    @ApiModelProperty(value = "项目编号")
    private String projectNumber;
	/**所属库*/
	@Excel(name = "所属库", width = 15, dictTable = "c_library", dicText = "name", dicCode = "id")
	@Dict(dictTable = "c_library", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "所属库")
    private String libraryId;
	/**总包主体*/
	@Excel(name = "总包主体", width = 15, dictTable = "c_company_info", dicText = "company_name", dicCode = "id")
	@Dict(dictTable = "c_company_info", dicText = "company_name", dicCode = "id")
    @ApiModelProperty(value = "总包主体")
    private String companyInfoId;
	/**付款合计*/
	@Excel(name = "付款合计", width = 15)
    @ApiModelProperty(value = "付款合计")
    private BigDecimal paymentTotal;
	/**收票合计*/
	@Excel(name = "收票合计", width = 15)
    @ApiModelProperty(value = "收票合计")
    private BigDecimal receiptsAndTaxTotal;

	/**开票合计*/
	@Excel(name = "开票合计", width = 15)
	@ApiModelProperty(value = "开票合计")
	private BigDecimal totalInvoicing;
	/**项目收款*/
	@Excel(name = "项目收款", width = 15)
	@ApiModelProperty(value = "项目收款")
	private BigDecimal totalReceipts;

	/**主项目合同金额*/
	@Excel(name = "主项目合同金额", width = 15)
	@ApiModelProperty(value = "主项目合同金额")
	private BigDecimal contractPrice;
	/**子项目合同金额合计*/
	@Excel(name = "子项目合同金额合计", width = 15)
	@ApiModelProperty(value = "子项目合同金额合计")
	private BigDecimal subProjectAmount;

	/**质保金合计*/
	@Excel(name = "质保金合计", width = 15)
	@ApiModelProperty(value = "质保金合计")
	private BigDecimal totalGuaranteeDeposit;



	/**发包单位*/
	@Excel(name = "发包单位", width = 15, dictTable = "c_contracting_unit", dicText = "name", dicCode = "id")
	@Dict(dictTable = "c_contracting_unit", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "发包单位")
    private String contractingUnit;

	@ApiModelProperty(value = "是否传主项目合同")
	private String isContract;

	@ApiModelProperty(value = "子项目数量")
	private Integer subProjectCount;





	/***标记价格***/
	@TableField(exist = false)
	@Excel(name = "收票", width = 15)
	@ApiModelProperty(value = "收票")
	private BigDecimal receiptsAndTaxTotalMark;
	@TableField(exist = false)
	@Excel(name = "付款", width = 15)
	@ApiModelProperty(value = "付款")
	private BigDecimal paymentTotalMark;
	@TableField(exist = false)
	@Excel(name = "开票", width = 15)
	@ApiModelProperty(value = "开票")
	private BigDecimal totalInvoicingMark;
	@TableField(exist = false)
	@Excel(name = "收款", width = 15)
	@ApiModelProperty(value = "收款")
	private BigDecimal totalReceiptsMark;
	@TableField(exist = false)
	@Excel(name = "主合同金额", width = 15)
	@ApiModelProperty(value = "主合同金额")
	private BigDecimal contractPriceMark;
	@TableField(exist = false)
	@Excel(name = "子项目合同金额", width = 15)
	@ApiModelProperty(value = "子项目合同金额")
	private BigDecimal subProjectAmountMark;
	@TableField(exist = false)
	@Excel(name = "质保金合计", width = 15)
	@ApiModelProperty(value = "质保金合计")
	private BigDecimal totalGuaranteeDepositMark;
	@TableField(exist = false)
	@Excel(name = "合同数量", width = 15)
	@ApiModelProperty(value = "合同数量")
	private Integer isContractMark;



}
